package cn.jiyun.classes.figen;

import cn.jiyun.classes.pojo.Teacher;
import cn.jiyun.teacher.pojo.AdchannelVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-teacher")
public interface TeacherFigen {
    @RequestMapping("/teacher/add")
    AdchannelVo add(@RequestBody Teacher teacher);
    @RequestMapping("/teacher/{id}")
    Teacher findById(@PathVariable("id")Integer id);
    @RequestMapping("/teacher/edit")
    AdchannelVo edit(@RequestBody Teacher teacher);
}
